package ooday02;

public class ExtendsTest {
    public static void main(String[] args) {
        Student zs = new Student("张三", 25, "廊坊", "jsd2302", "001");
        /*
        zs.name = "张三";
        zs.age = 25;
        zs.address = "廊坊";
        zs.className = "jsd2302";
        zs.stuId = "001";
         */
        zs.eat();
        zs.sleep();
        zs.sayHi();
        zs.study();


        Teacher wkj = new Teacher("王克晶", 39, "北京", 100000.0);
     /*   wkj.name = "王克晶";
        wkj.age = 39;
        wkj.address = "北京";
        wkj.salary = 100000.0;*/
        wkj.eat();
        wkj.teach();
        wkj.sleep();
        wkj.sayHi();

        Doctor qiaoYi = new Doctor("乔伊", 18, "宝可梦医院中心", "护士");
        qiaoYi.name = "乔伊";
        qiaoYi.age = 18;
        qiaoYi.address = "宝可梦医院中心";
        qiaoYi.cut();
        qiaoYi.sayHi();


    }
}
